package cn.young.javalearning.designpattern.factorypattern.bean.f_bean;

public class AppleWrapper extends FruitWrapper{
    private Apple apple;

    public AppleWrapper(Apple apple) {
        this.apple = apple;
    }

    @Override
    public String toString() {
        return "AppleWrapper{" +
                "apple=" + apple +
                "}" + super.toString();
    }

    public Apple getApple() {
        return apple;
    }

    public AppleWrapper setApple(Apple apple) {
        this.apple = apple;
        return this;
    }
}
